package server.resources;

import java.util.Arrays;
import java.util.List;

import server.database.AbstractTable;
import server.database.DatabaseColumn;

public class ProductCranesTable extends AbstractTable
{
	public static final String TABLE_NAME = "Product_Cranes";

	public static final DatabaseColumn PRODUCT_ID = new DatabaseColumn("product_id", INTEGER, Arrays.asList(NOT_NULL));
	public static final DatabaseColumn CRANE_ID = new DatabaseColumn("crane_id", INTEGER, Arrays.asList(NOT_NULL));

	public final List<DatabaseColumn> m_lstColumns = Arrays.asList(PRODUCT_ID, CRANE_ID);
	public final List<DatabaseColumn> m_lstKey = Arrays.asList(PRODUCT_ID, CRANE_ID);

	@Override
	public String getTableName()
	{
		return TABLE_NAME;
	}

	@Override
	public List<DatabaseColumn> getColumns()
	{
		return m_lstColumns;
	}

	@Override
	public List<DatabaseColumn> getPrimaryKey()
	{
		return m_lstKey;
	}

}
